package Test_0722;

/**
 * Created with Intellij IDEA
 * Description:
 * User: 星辰
 * Dare: 2024-07-22

 */
public class Animal {
    public int age;
    public String name;
    static{
        System.out.println("父类静态代码块");
    }
    {
        System.out.println("父类实例化代码块");
    }
    public Animal(int age, String name, String color) {
        this.age = age;
        this.name = name;;
       System.out.println("父类构造方法.......");
    }
}
